#================================================================
#	This Makefile creates Polyhedron.so which can be imported via Python
#================================================================

include ../makefile.inc

Polyhedron_module = Polyhedron

OBJ_of_Polyhedron_module =  \
	Polyhedron_module.o \
	Py_Polyhedron_3.o \
	Py_Tools.o

all:$(OBJ_of_Polyhedron_module) 
	@echo 'Creating a Python modules'
	@g++ $(CGAL_PYTHON_LDFLAGS) $(OBJ_of_Polyhedron_module)  -o $(Polyhedron_module).so
	@echo '$(Polyhedron_module) module is created in ./$(Polyhedron_module)/$(Polyhedron_module).so'

.cpp.o:
	@echo 'Compiling $<'
	@g++ $(CGAL_PYTHON_CXXFLAGS) -c $<

clean:
	@rm -f *.so
	@rm -f $(OBJ_of_Polyhedron_module) *.*~  *~ 
